package com.gitee.hljdrl.uikit.basic;

import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.DrawableRes;
import androidx.annotation.StringRes;

public interface UITitleBarEvent {

    String KEY_TITLE=".KEY_TITLE";

    void loadIntent(Intent intent);

    void hideBack();
    void showBack();

    void hideRight();
    void showRight();

    void updateViewState(View v, int showAndHide);

    TextView getRightTextView();

    ImageView getBackImageView();

    ImageView getRightImgView();

    TextView getTitleView();

    void setTitle(String title);

    void setTitle(@StringRes int title);
    void setTitleColor(int color);

    void setTitleSize(int size);

    void setBackground(Drawable drawable);

    void setBackgroundColor(int color);

    void setBackgroundResource(@DrawableRes int resId);

    View getView();

    void setBackOnClickListener(View.OnClickListener onClickListener);

    void setRightOnClickListener(View.OnClickListener onClickListener);

    void setRightImgOnClickListener(View.OnClickListener onClickListener);

    void show();

    void hide();


}
